import QtQuick 1.0
import com.nokia.symbian 1.0

Item {
    id: sessionTypeDelegate

    width:  sessionTypeDelegate.ListView.view.width
    height: 50


   Column {

       FontLoader {
           id: fontStyle
           name: "Helvetica"
       }

        Rectangle {
            id: sessionTypeRect

            width:  sessionTypeDelegate.width
            height: sessionTypeDelegate.height
            color:  "#ffffff"
            border.width: 1
            border.color: "black"
            smooth: true

            Text {
                anchors.verticalCenter: parent.verticalCenter

                text: type
                color: "black"
                font.family: fontStyle.name
                font.pixelSize: 20

                wrapMode: Text.WordWrap

            }

            MouseArea {
                id: sessionListMouse
                anchors.fill: parent

                onClicked: {
                    sessionOpen.sessionType(index + 1);
                    pageStack.push(sessionOpen);
                }

                onPressed: {
                    parent.color = "#f2f2f2"
                }

                onReleased: {
                    parent.color = "#ffffff"
                }

                onCanceled: {
                    parent.color = "#ffffff"
                }
            }
        }

    }

}
